package com.example.june.zhanghaoguanli;

import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.widget.ListView;

import com.longfly_example.e_scale.R;

import java.util.ArrayList;
import java.util.List;

public class Activity_jhmx extends AppCompatActivity {

    ListView myListView ;
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_jhmx);
        List<LianxirenBean_jhmx> itemBeanList = new ArrayList<LianxirenBean_jhmx>();

        itemBeanList.add(new LianxirenBean_jhmx("苹果","9.9","1550","12.23",R.drawable.editor,R.drawable.delete));
        itemBeanList.add(new LianxirenBean_jhmx("草莓","8.9","885","12.22",R.drawable.editor,R.drawable.delete));
        itemBeanList.add(new LianxirenBean_jhmx("橙子","12.9","670","12.22",R.drawable.editor,R.drawable.delete));
        itemBeanList.add(new LianxirenBean_jhmx("柠檬","8.9","80","12.21",R.drawable.editor,R.drawable.delete));
        itemBeanList.add(new LianxirenBean_jhmx("葡萄","15.9","70","12.21",R.drawable.editor,R.drawable.delete));
        itemBeanList.add(new LianxirenBean_jhmx("雪梨","6.9","1500","12.21",R.drawable.editor,R.drawable.delete));
        itemBeanList.add(new LianxirenBean_jhmx("香蕉","3.9","500","12.20",R.drawable.editor,R.drawable.delete));

        myListView =(ListView)findViewById(R.id.lv_jhmx);
        //设置ListView的数据适配器
        myListView.setAdapter(new Myadapter_jhmx(this,itemBeanList));
    }
}
